
const shop = require("./shop/index")
const info = require("./info/index")
const message = require("./message/index")


// 云函数入口函数
exports.main = async (event, context) => {
    console.log(event)
    switch (event.type) {
        case 'getInfo':
            return await info.main(event, context);
        case 'addShop':
            return await shop.add(event, context);
        case 'getShop':
            return await shop.get(event, context);
        case 'getOneShop':
            return await shop.getOne(event, context);
            case 'getRoom':
                return await message.getRoom(event, context);
    }
}